Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

153
Vistas
svelte-codejar "ctx[1] is not a constructor"

I am using svelte and svelte-codejar with prismjs and I am getting this error Uncaught TypeError: ctx[1] is not a constructor Here's my code

<script context="module">
    import Prism from "prismjs"
      const highlight = (code, syntax) => Prism.highlight(code, Prism.languages[syntax], syntax);
    </script>
    
    <script>
      import "prismjs/themes/prism-tomorrow.css";
      import {getContext} from "svelte";
      import {DEFAULT_CODE_SAMPLE, DEFAULT_CODE_SYNTAX} from "./_sample";
      const store = getContext("CodeJar");
      const options = getContext("options");
      const CodeJar = $store;
      
    </script> 

any help would be great I also get Uncaught TypeError: $options is undefined if this line is added $: ({withLineNumbers = false} = $options);

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda